﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace ctolua.Models
{
    public class MSound
    {

        /// <summary>
        /// 播放音乐
        /// </summary>
        /// <param name="role"> 玩家 </param>
        /// <param name="sid"> 乐曲编号 </param>
        /// <param name="loop"> 是否循环 </param>
        /// <param name="fade_in_time"> 淡入时间 </param>
        /// <param name="fade_out_time"> 淡出时间 </param>
        /// <returns>声音对象</returns>
        public MSound(Role role, int? sid, bool? loop=true, double? fade_in_time=0, double? fade_out_time=0) {

            game_api.play_sound_for_player( role,  sid,  loop, fade_in_time,  fade_out_time);
        }

    }
}
